export interface Part {
  partId: number;
  partNum: string;
  partName: string;
  partNumber: number;
  unitUsage: number;
  lossRate: number;
  fixedLoss: number;
  partType?: string;
  partUOM?: string;
}

export interface ProcessDetail {
  processId: number;
  processNum: string;
  processName: string;
  processNumber: number;
  isFirstInspection: boolean;
  isOutsourcing: boolean;
  isInspection: boolean;
  unitTime: number;
  pieceWage?: number; // 计件工资（元/件）
  parts: Part[];
}

export interface MomData {
  partId: number;
  partNum: string;
  partName: string;
  version: string;
  technologyRouteId: number;
  technologyRouteNum: string;
  technologyRouteName: string;
  startDate: string;
  endDate: string;
  isApproval: boolean;
  processDetails: ProcessDetail[];
}
